'use strict';

const express = require('express');

const studentRouter = express.Router();
const studentCtr = require('../../controllers/studentController.js');

studentRouter.get('/student_add',studentCtr.stuAdd);

studentRouter.post('/student_add',studentCtr.stuAddData);

studentRouter.get('/student_list',studentCtr.stuList);
studentRouter.get('/student_del/:id',studentCtr.stuDelData);
studentRouter.get('/studentAll_del/:id',studentCtr.stuDelAllData);

studentRouter.post('/student_list',studentCtr.stuStatus);

studentRouter.get('/student_edit/:id',studentCtr.stuEdit);

studentRouter.post('/student_edit/:id',studentCtr.stuEditData);

module.exports = studentRouter;